﻿/*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IvyOrm
{
    /// <summary>
    /// Specify options for Insert, Update and Delete commands
    /// </summary>
    [Flags]
    public enum ModificationOptions
    {
        /// <summary>
        /// Will not apply any of the options.
        /// </summary>
        None = 0,
        /// <summary>
        /// Will use the providers default where available.
        /// </summary>
        ProviderDefault = 1,
        /// <summary>
        /// Converts the table name and column names to uppercase for database commands.
        /// </summary>
        UppercaseIdentifiers = 2,

        /// <summary>
        /// Converts the table name and column names to lowercase for database commands.
        /// </summary>
        LowercaseIdentifiers = 4,

        /// <summary>
        /// Ignores the returned record update count. If not specified an exception will be 
        /// thrown if no records are updated.
        /// </summary>
        DoNotThrowExceptionOnNoRecordsUpdated = 8,
    }
}
